﻿(function(E, T, $){
var selection = E.mod('Selection'), Event = E.mod('Event'),
	testName = 'H1',
	selectValue = '一级标题',
	setValue = '<span id="_testTitle">一级标题</span>',
	title = '一级标题',
	dom = null,
	node = null,
	cmds = [
		[1500, {fun: function() {
			dom = E.get('document');
			dom.body.innerHTML = setValue;
			node = dom.getElementById('_testTitle');
			selection.selectNode(node,true);
			Event.setElement($(node));
			selection.selectedText(selectValue);
		}}],
		[500,{name : '#demo-H1', type: 'mouseover'}],
		[500,{name : '#demo-H1 span.H1', type: 'click'}]
	];

T.addTest(testName, cmds, title);
})(jQEditor,AutoTest, jQuery)

